package com.example.gustavo.hello.model;

import android.databinding.BaseObservable;
import android.databinding.Bindable;

import com.example.gustavo.hello.BR;

/**
 * Created by gustavo on 2015/4/29.
 */
public class TestObj extends BaseObservable{

    String info;
    String data;

    public TestObj() {
    }

    public TestObj(String info, String data) {
        this.info = info;
        this.data = data;
    }

    @Bindable
    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
        notifyPropertyChanged(BR.info);
    }

    @Bindable
    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
        notifyPropertyChanged(BR.data);
    }

    @Override
    public String toString() {
        return "TestObj{" +
                "info='" + info + '\'' +
                ", data='" + data + '\'' +
                '}';
    }
}
